package org.vincen.helloworld.jdbc;

import java.io.IOException;
import java.sql.Connection;
import java.sql.SQLException;

public class Main {
	
	private static Connection connection = null;
	
	public static void main(String[] args) {
		CRUD crud = new CRUD();
		try {
			connection = DatabaseConnector.buildConnector();
			
			crud.read(connection);
//			int i = crud.insert(connection);
//			System.out.println(i);
			
			
			connection.close();
		} catch (SQLException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} 
	}

}
